package com.ledim.bean;

import java.io.Serializable;
import java.util.HashMap;
import java.util.Iterator;

/**
 * Created by ccx on 16/7/26.
 * 剧集信息bean
 */
public class LedimEpisodeBean implements Serializable {

    public int btime;

    public HashMap<Integer, String> videoType;

    public HashMap<Integer, String> category;

    //public String compere;
    //
    //public String createTime;

    public String description;

    //public String downloadPlatform;

    public int duration;

    public String episode;

    public int etime;
    //
    //public String guest;

    public int id;

    //public int isFirstLook;
    //
    //public int isHomemade;

    //public int isPay;
    //
    //public int logoNum;
    //
    //public String mid;

    public String nameCn;

    // public String payPlatform;

    public HashMap<String, String> picAll;

    public int pid;

    //public String platformFirstOnTime;

    //public String playPlatform;

    //public int porder;

    //public String releaseDate;
    //public String singer;
    //public String sourceId;
    //public String starring;
    //public String subCategory;

    public String subTitle;

    public String tag;

    //public String transCodePrefix;
    //
    //public String updateTime;
    //
    //public int userId;

    //public String videocode;

    public String getPic() {
        if (picAll != null) {
            Iterator<String> iterator = picAll.keySet().iterator();
            while (iterator.hasNext()) {
                return picAll.get(iterator.next());
            }
        }
        return null;
    }

    public Integer getVedioType() {
        if (videoType != null) {
            Iterator<Integer> iterator = videoType.keySet().iterator();
            while (iterator.hasNext()) {
                return iterator.next();
            }
        }
        return -1;
    }

    public Integer getcategory() {
        if (category != null) {
            Iterator<Integer> iterator = category.keySet().iterator();
            while (iterator.hasNext()) {
                return iterator.next();
            }
        }
        return -1;
    }

}
